package day125;

public class Demo06 {
    public static void main(String[] args) {
        /*
        掩码运算
         */
        //4位掩码 0xf  0b1111 15
        //6位掩码 0x3f 0b111111 63
        //8位掩码  0xff 0b11111111 255
        int n=0X179d5d9e;
        int m=0xff;
        int k=n&m;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toBinaryString(k));
    }
}
